package com.goldman.aplt.service.seq;


import com.goldman.aplt.entity.seq.MsbSequence;
import com.goldman.aplt.repo.seq.MsbSequenceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zw
 * @since 2023-09-20
 */
@Service
public class MsbSequenceService extends ServiceImpl<MsbSequenceMapper, MsbSequence> {

    @Autowired
    MsbSequenceMapper msbSequenceMapper;

    public MsbSequence selOneWithLock(String seqCode, String identifierSegment) {
        MsbSequence seq = msbSequenceMapper.selOneWithLock(seqCode, identifierSegment);
        return seq;
    }
}
